hScroll
Type
property
Summary
Specifies the horizontal scroll of a field or group.
Syntax
set the hScroll of {<field> | <group>} to <pixels>
Description
Use the hScroll property to scroll a field or group horizontally, or to check how far it's been scrolled.
The hScroll is the amount in pixels the object has been scrolled to the right. If the hScroll is zero, the object has not been scrolled.
Setting the hScroll of a field or group causes a scrollbarDrag message to be sent.
Examples
set the hScroll of field "Wasps" to the width of field "Wasp"
Value
Name | Type | Description |
---|---|---|
value | The hScroll of a field, group, or stack is an integer between zero and the field's or group's formattedWidth. By default, the hScroll property of newly created objects is set to zero. |
Related
message: scrollbarDrag
property: hScrollbar, pixels, formattedWidth
command: group
constant: scrollbarFactor
glossary: object, property, message, group
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile